package space.panker916.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import space.panker916.dao.UserMapper;
import space.panker916.pojo.User;

/**
 * @program: niit-spring
 * @description:
 * @author: PanKer
 * @create: 2022-04-18 22:35
 */
@Service
public class UserService {
    @Autowired
    private UserMapper userMapper;

    public int insertUser(User user) {
        return userMapper.insertUser(user);
    }

    public int updateUser(User user) {
        return userMapper.updateUser(user);
    }
}
